const axios = require('axios')

axios.post('http://localhost:8081/api/customers', {
  "firstname":"Adam",
  "lastname":"Johnson",
  "age":48,
  "id":5
},
{
  headers: {
   "Content-Type": "application/json"
  }
}
)
.then((res) => {
  console.log(`statusCode: ${res.statusCode}`)
  console.log(res)
})
.catch((error) => {
  console.error(error)
})
